package com.example.sina;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class StartActivity extends Activity implements OnClickListener {

	private Button sina, qq;
	private Intent intent;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start_activity);
		sina = (Button) findViewById(R.id.start_sina);
		qq = (Button) findViewById(R.id.start_qq);
		sina.setOnClickListener(this);
		qq.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.start_sina:
			intent = new Intent(StartActivity.this, SinaActivity.class);
			break;
		case R.id.start_qq:
			intent = new Intent(StartActivity.this, QQActivity.class);
			break;
		}
		startActivity(intent);
	}

}
